<?php include PATH_TPL."/admin/tpl.header.phtml"?>
<div class="main-container inner">
    <div class="main-content">
        <div class="container-fluid">
            <div class="row bt">
                <div class="col-lg-12 bg">
                    <ol class="breadcrumb">
                        <li class="active">
                            <i class="fa  fa-fw fa-reorder"></i>属组描述管理
                        </li>
                    </ol>
                </div>
            </div>
            <div id="page-wrapper">
                <form method="post" action="/admin_policygroup/edit">
                <label for="policyno"><font size="4">保单号</font></label></br>
                <label><?=$tPGRow['policyno']?></label></br>
                <label for="policygroup"><font size="4">属组号</font></label></br>
                <label><?=$tPGRow['policygroup']?></label></br>
                <label for="policygroupremak"><font size="4">属组描述</font></label></br>
                <input type="text" name="policygroupremak" value="<?=$tPGRow['policygroupremak']?>" class="form-controll"></br>
                </br></br>
                <input type="hidden" name="id" value="<?=$pId?>">
                <button type="button" class="btn btn-success demo_2" id="submit">保存</button>
                 </form>
            </div>
        <div class="subviews">
            <div class="subviews-container"></div>
        </div>
    </div>
    <!-- end: PAGE -->
</div>
<!-- end: MAIN CONTAINER -->
<script type="text/javascript" src="/plugins/jquery-ui-1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="/plugins/datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="/plugins/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
$('.datetimeEnd').datetimepicker({
    language:  'zh-CN',
    weekStart: 1,
    todayBtn:  1,
    autoclose: 1,
    todayHighlight: 1,
    startView: 2,
    minView: 0,
    format:'yyyy-mm-dd hh:ii',
    pickerPosition: "top-right",
    forceParse: 0
});
</script>
<script type="text/javascript">
$('.form_date').datetimepicker({
    language:  'zh-CN',
    weekStart: 1,
    todayBtn:  1,
    autoclose: 1,
    todayHighlight: 1,
    startView: 2,
    minView: 0,
    dateStart:'2016-01-01',
    dateEnd:'2050-12-30',
    pickerPosition: "top-right",
    format:'yyyy-mm-dd hh:ii:ss',
    forceParse: 0
});
</script>

<script>
$(function(){
    var options={
        beforeSubmit : showRequest,    // 提交前的回调函数
        success : showResponse,    // 提交后的回调函数
        dataType : "json",    // html（默认）、xml、script、json接受服务器端返回的类型
    }
    function showRequest(formData, jqForm, options){
        return true;
    }
    function showResponse(responseText,statusText){
            cg_alert_edit(responseText,'/admin_policygroup','/admin_policygroup/edit?id=<?=$pId?>');
    }
    $('#submit').click(function() {
        $('form').ajaxSubmit(options);
        return false;

    });
});

</script>
<?php include PATH_TPL."/admin/tpl.footer.phtml"?>
